package com.crm.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @version 1.0
 * @author: CRM_SYSTEM
 * @date: 2022/4/2 0:22
 * @Description:
 */
@Component
//如果有多个runner需要指定一些顺序
@Order(1)
@Slf4j
public class CrmApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
            log.info("》》》》》》》》》》》》》》》》》》》》》项目启动时开始执行！！！");
    }
}
